home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7824 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: news.cc.ic.ac.uk!vulture
  2. From: vulture@imperial.ac.uk (Thomas Sippel - Dau)
  3. Newsgroups: gnu.g++.help,comp.lang.c++,comp.sys.sgi.apps,comp.sys.sgi.misc
  4. Subject: Re: SGI and C++
  5. Date: 19 Feb 1996 14:25:10 GMT
  6. Organization: Imperial College of Science, Technology and Medicine
  7. Sender: vulture@carrion.cc.ic.ac.uk (Thomas Sippel - Dau)
  8. Distribution: world
  9. Message-ID: <4ga186$bk2@oban.cc.ic.ac.uk>
  10. References: <4f609s$rho@fu-berlin.de> <4f6726$4ch@fido.asd.sgi.com> <4fahih$s13@fu-berlin.de> <4fbhs0$eo3@fido.asd.sgi.com> <4fl2nh$b66@sun20.ccd.bnl.gov>
  11. Reply-To: vulture@imperial.ac.uk
  12. NNTP-Posting-Host: cscgc.cc.ic.ac.uk
  13. Originator: vulture@carrion.cc.ic.ac.uk
  14.  
  15.  
  16. In article <4fl2nh$b66@sun20.ccd.bnl.gov>, olchansk@a2.phy.bnl.gov (Konstantin Olchanski) writes:
  17. - Well, while not exactly in the bugs department, but I have found
  18. -     that the SGI implementation of templates is significantly
  19. -     slower than GCC-
  20. - The GNU complex library uses templates, and when compiled
  21. -     by the SGI compiler, it's about 2 times slower
  22. -     than when compiled by G++ (both using -mips2 -O).
  23. -     If the GNU complex library is modified (to get rid
  24. -     of templates), the SGI-compiled code becomes as fast
  25. -     as the GCC-compiled code.
  26.  
  27. Essentially that is because the gcc implementation of templates is along
  28. the lines of "proovide the minimum necessary to get it going", while
  29. the ATT code (on which the SGI compiler is based) used a more general
  30. approach.
  31.  
  32. The "complex" derived type is effectively too small to show the benefit 
  33. of this generality, but gets to bear the full cost of it.
  34.  
  35.                              Thomas
  36. -- 
  37. *** Why not use metric units and get things right first time, every time.
  38. *   email: cmaae47@ic.ac.uk (Thomas Sippel - Dau)
  39. *   voice: +44 171 594 6904 (day), +44 171 594 6958 (fax), +44 171 385 6540
  40. *   snail: ICSTM, Computing Services, Kensington SW7 2BX, Great Britain
  41.